<%--
  Created by IntelliJ IDEA.
  User: 27353
  Date: 2024/10/19
  Time: 21:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="./static/layui/css/layui.css" >
    <style>
        .layui-table {
            width: 800px;
            margin: 0 auto;
        }

        p {
            text-align: center;
        }

        .layui-form-item {
            text-align: center;
        }
    </style>
</head>
<body>
<table class="layui-table" lay-even>
    <colgroup>
        <col width="150">
        <col width="150">
        <col>
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>地址</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${depts}" var="d">
        <tr>
            <td>${d.id}</td>
            <td>${d.name}</td>
            <td>${d.dp}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
